package com.mc.redis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/***
 * @ClassName RedisConfig
 * @Description 加载redis 配置文件
 * @Author CC
 * @Date: 2019/10/1717:14
 * @Version 1.0
 */
@Component //组件
@ConfigurationProperties(prefix = "redis")
@Data
public class RedisConfig {
private String host;
private int port;
private int timeout;
private String password;
private int poolMaxTotal;
private int poolMaxIdle;
}
